import { ApiProperty } from '@nestjs/swagger';
import { IsBoolean, IsNotEmpty, IsOptional, IsString, MinLength } from 'class-validator';

export class AdminResetPasswordDto {
  @ApiProperty({
    description: 'New password',
    minLength: 8,
    example: 'NewSecureP@ss123!',
  })
  @IsNotEmpty()
  @IsString()
  @MinLength(8)
  newPassword: string;

  @ApiProperty({
    description: 'Whether to force logout from all devices',
    default: true,
    required: false,
  })
  @IsOptional()
  @IsBoolean()
  forceLogout?: boolean = true;
}
